#ifndef _UART_H_
#define _UART_H_

#include "common_def.h"

// NOTE: uart operates at baud-rate 9600
void uart_init(void);
void uart_uninit(void);
void uart_putc(uint8 c);
bool uart_getc(uint8* pc);

// simulate the case when a char received from hardware
void uart_hw_receive(uint8 c);

void uart_disable_input(void);
void uart_enable_input(void);

#endif
